From f00b33008950c400711c9ab1cd11337be04a4eb5 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 7 Oct 2009 07:45:14 +0100 Subject: [PATCH] Slightly more accurate dependency tracking for the .c and .h files in include/compat. They should depend on the scripts which generate them, as well as the inputs to those scripts. Signed-off-by: Steven Smith --- xen/include/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/include/Makefile b/xen/include/Makefile index 0223835c08..8f9975ce31 100644 --- a/xen/include/Makefile +++ b/xen/include/Makefile @@ -44,7 +44,7 @@ public-$(CONFIG_IA64) := $(wildcard public/arch-ia64/*.h public/arch-ia64/*/*.h) .PHONY: all all: $(headers-y) -compat/%.h: compat/%.i Makefile +compat/%.h: compat/%.i Makefile $(BASEDIR)/tools/compat-build-header.py set -e; id=_$$(echo $@ | tr '[:lower:]-/.' '[:upper:]___'); \ echo "#ifndef $$id" >$@.new; \ echo "#define $$id" >>$@.new; \ @@ -60,7 +60,7 @@ compat/%.h: compat/%.i Makefile compat/%.i: compat/%.c Makefile $(CPP) $(filter-out -M% .%.d,$(CFLAGS)) $(cppflags-y) -o $@ $< -compat/%.c: public/%.h xlat.lst Makefile +compat/%.c: public/%.h xlat.lst Makefile $(BASEDIR)/tools/compat-build-source.py mkdir -p $(@D) grep -v 'DEFINE_XEN_GUEST_HANDLE(long)' $< | \ $(PYTHON) $(BASEDIR)/tools/compat-build-source.py >$@.new -- 2.30.2